<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?php echo base_url();?>system/application/views/html/images/default/css/style.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<?php echo base_url();?>system/application/views/html/images/js/jslib.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>system/application/views/html/images/js/swf_noclick.js"></script>
<title>中国数码网首页</title>
</head>
<body>
<div id="wrapper">
  <div class="header">
    <div class="header_left"></div>
    <div class="header_right">
      <li class="bg"><a href="<?php echo base_url();?>">首　页</a></li>
      <li><a href="<?php echo site_url();?>/display_index/news">行业资讯</a></li>
      <li><a href="<?php echo site_url()?>/list_product/list_goods">产品世界</a></li>
      <li><a href="#" target="_blank">数码论坛</a></li>
      <li><a href="<?php echo site_url()?>/user">会员中心</a></li>
      <li><a href="<?php echo site_url()?>/display_index/service">客户服务</a></li>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
  <div class="banner"><img src="<?php echo base_url();?>system/application/views/html/images/default/img/banner.png" /></div>  <div class="search">
    <form id="form1" name="form1" method="POST" action="?q=home-product">
      <div class="searchleft">产品搜索
        <input type="text" name="keyword" style="width:114px;" class="searchtext" />
        <input type="submit" name="Submit" value="" class="searchsub" />
      </div>
      <div class="searchright big">热门搜索</div>
    </form>
    <div class="clear"></div>
  </div>
  <div class="searchlist"><?php foreach($allsort->result() as $allsort2)
  echo "<a href=>".$allsort2->title."</a>";
  							?></div>
  <div class="newslist">
    <div class="newslistleft">
      <div class="newstitle">
        <div class="newstitleleft">资讯头条</div>
        <div class="newstitler"> </div>
      </div>
      <div class="newitem"><!--  -->
      <?php foreach ($toutiao->result() as $toutiao2):?>
        <dl>
          <dt><a href="<?php echo site_url();?>/display_index/newscontent/<?php echo $toutiao2->newsid?>" class="newslink"><?php echo $toutiao2->title;?></a></dt>
          <dd>[<?php echo date("Y-m-d",$toutiao2->times)?>]</dd>
        </dl>
	<?php endforeach;?>
   
<!--  -->        <div class="clear"></div>
      </div>
      <div class="newstitle">
        <div class="newstitleone">专家观点</div>
        <div class="clear"></div>
      </div>
      <div class="newitem">
      <?php foreach ($zhuanjia->result() as $zhuanjia2):?>
          <dl>
          <dt><a href="<?php echo site_url();?>/display_index/newscontent/<?php echo $zhuanjia2->newsid?>" class="newslink"><?php echo $zhuanjia2->title;?></a></dt>
          <dd>[<?php echo date("Y-m-d",$zhuanjia2->times)?>]</dd>
        </dl>           
       <?php endforeach; ?>
        <div class="clear"></div>
      </div>
      <div class="newstitle">
        <div class="newstitleone">产品点评</div>
        <div class="clear"></div>
      </div>
      <div class="newitem">
       <?php foreach ($chanpin->result() as $chanpin2):?>
                <dl>
          <dt><a href="<?php echo site_url();?>/display_index/newscontent/<?php echo $chanpin2->newsid?>" class="newslink"><?php echo $chanpin2->title;?></a></dt>
          <dd>[<?php echo date("Y-m-d",$chanpin2->times)?>]</dd>
        </dl>        
<?php endforeach; ?>
        <div class="clear"></div>
      </div>
      <div><img src="<?php echo base_url();?>system/application/views/html/images/default/img/newsone.png" /></div>
    </div>
    <div class="newslistright">
      <div><img src="<?php echo base_url();?>system/application/views/html/images/default/img/newssix.png" /></div>
      <div class="newsshow">
        <div class="showleft"><img src="<?php echo base_url();?>system/application/views/html/images/default/img/show.png" /></div>
        <div class="showright">
          <li><img src="<?php echo base_url();?>system/application/views/html/images/default/img/showimg.png" /></li>
          <li><img src="<?php echo base_url();?>system/application/views/html/images/default/img/showimg.png" /></li>
          <li><img src="<?php echo base_url();?>system/application/views/html/images/default/img/showimg.png" /></li>
          <li class="height"><img src="<?php echo base_url();?>system/application/views/html/images/default/img/showimg.png" /></li>
          <div class="clear"></div>
        </div>
        <div class="noticew">
          <p class="tc big"><strong>带你见识一下美国的超小军用笔记本</strong></p>
          <p class="font border spaceone">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;高科技…  [<a href="#" class="detail">详细</a>]</p>
        </div>
        <div class="noticew noticemargin">
          <div class="noticeleft">
            <div class="loginnotice">&nbsp;&nbsp;&nbsp;&nbsp; <img src="<?php echo base_url();?>system/application/views/html/images/default/img/newseight.png" /></div>
            <div class="notice">
            <?php foreach ($gonggao->result() as $gonggao2):?>
            <li>
            <a href="<?php echo site_url();?>/display_index/newscontent/<?php echo $gonggao2->newsid?>" class="newslink">
            <?php echo $gonggao2->title;?>
            </a></li>      
	<?php endforeach; ?>
            <div class="clear"></div>
            </div>
          </div>
          <div class="login">
            <div class="loginall"><img src="<?php echo base_url();?>system/application/views/html/images/default/img/loginicon.png" /></div>
  <form action="<?php echo base_url();?>index.php/user/login" method="POST" id="login" name="login" target="_top" onKeyDown="if(event.keyCode==13)this.submit()">
  <input type="hidden" name="do" value="login" />
  <input type="hidden" name="formhash" value="6fcccb3e" />
  <input type="hidden" name="referer" value="http://localhost/ptkdemo/index.php" />
              <div class="loginlink">
                <div class="loginall">
                  <div class="loginleft spacetwo">
                    <div class="font">用户名
                      <input type="text" name="username" class="logintext" />
                    </div>
                    <div class="spacetwo font">密&nbsp;&nbsp;&nbsp;码
                      <input type="password" name="password" class="logintext" />
                    </div>
                  </div>
                  <div class="loginright spacetwo">
                    <input type="submit" name="Submit2" value="" class="loginsub" />
                  </div>
                  <div class="clear"></div>
                </div>
                <div class="loginleft">
                  <div class="tc loginspace">
                    <input type="checkbox" name="checkbox" value="checkbox" />
                    &nbsp;记住密码 </div>
                  <div class="loginspaceone">
                   <input type="button" onclick="location.href='http://localhost/ptkdemo/index.php?q=member-register'" name="Submit2" value="" class="loginsubone" />
                   <input type="button" onclick="location.href='http://localhost/ptkdemo/index.php?q=member-getpassword'" name="Submit2" value="" class="loginsubtwo" />
                  </div>
                </div>
                <div class="clear"></div>
              </div>
            </form>
          </div>
          <div class="clear"></div>
        </div>
        <div class="clear"></div>
      </div>
      <div><img src="<?php echo base_url();?>system/application/views/html/images/default/img/newsseven.png" /></div>
    </div>
    <div class="clear"></div>
  </div>
  <div class="newslist">
    <div class="proleft">
      <p><img src="<?php echo base_url();?>system/application/views/html/images/default/img/adone.png" /></p>
      <div class="proall spacefour">
        <div class="newstitle">
          <div class="newstitleleft">热卖产品</div>
          <div class="newstitler"> </div>
        </div>
        <div class="proall protop">
          <div class="proleftlist">
            <div class="promenuleft">
              <li class="font">产品世界</li>
                <li class="bg"><span class="fl">&nbsp;数码相机</span><img src="<?php echo base_url();?>system/application/views/html/images/default/img/proicon.png" class="fr" /></li>
  <li>
<?php foreach($dc->result() as $dc2):?>
  <?php echo "<a href=#>".$dc2->title."</a>";?>
  <?php endforeach; ?>
  <li class="bg"><span class="fl">&nbsp;手机</span><img src="<?php echo base_url();?>system/application/views/html/images/default/img/proicon.png" class="fr" /></li>
  <li>
<?php foreach($phone->result() as $phone2):?>
  <?php echo "<a href=#>".$phone2->title."</a>";?>
  <?php endforeach; ?>
  
  <li class="bg"><span class="fl">&nbsp;笔记本</span><img src="<?php echo base_url();?>system/application/views/html/images/default/img/proicon.png" class="fr" /></li>
  <li>
<?php foreach($notebook->result() as $notebook2):?>
  <?php echo "<a href=#>".$notebook2->title."</a>";?>
  <?php endforeach; ?> 
  </li>
  </div>
          </div>
          <div class="proshow">
          <?php foreach($bestseller->result() as $best):?>
              <li class="space">
              <p class="img"><a href="<?=base_url()?>index.php/list_product/goods_content/<?php echo $best->productid ?>"><img src="<?php echo base_url();?>uploads/goods/<?=$best->picture;?>" /></a></p>
              <p align="center"><span class="color"><?php echo $best->title;?></span><br />
                商家价格: <span class="red"><?php echo $best->price;?></span></p>
            </li>
            <?php endforeach;?>
               <div class="clear"></div>
          </div>
          <div class="clear"></div>
        </div>
        <div class="proall"><img src="<?php echo base_url();?>system/application/views/html/images/default/img/profooterone.png" /></div>
      </div>
      <div class="proall spacefour">
        <div class="newstitle">
          <div class="newstitleleft">促销产品</div>
          <div class="newstitler"> </div>
        </div>
        <div class="proshouji">       
        <?php foreach($cuxiao->result() as $cuxiao2):?>
           <li>
            <p class="img"><a href="<?=base_url()?>index.php/list_product/goods_content/<?php echo $cuxiao2->productid ?>"><img src="<?php echo base_url();?>uploads/goods/<?=$cuxiao2->picture;?>" /></a></p>
            <div class="bg"><?php echo $cuxiao2->title;?></div>
          </li>
          <?php endforeach;?>
            <div class="clear"></div>
        </div>
        <div class="proall"><img src="<?php echo base_url();?>system/application/views/html/images/default/img/profooterone.png" /></div>
      </div>
    </div>
    <div class="proright">
      <p class="spacefive"><img src="<?php echo base_url();?>system/application/views/html/images/default/img/adtwo.png" /></p>
      <div class="newstitle">
        <div class="newstitleleft">新品上市</div>
        <div class="newstitler"> </div>
        <div class="clear"></div>
      </div>
      <div class="pronews">
      <?php foreach($new->result() as $new2):?>
        <li>
          <p class="img"><a href="<?=base_url()?>index.php/list_product/goods_content/<?php echo $new2->productid ?>"><img src="<?php echo base_url();?>uploads/goods/<?=$new2->picture;?>" /></a></p>
          <p class="one"><?php echo $new2->title;?></p>
          <p class="two"><?php echo $new2->price;?></p>
        </li>
        <?php endforeach;?>
             <div class="clear"></div>
      </div>
      <div><img src="<?php echo base_url();?>system/application/views/html/images/default/img/profootertwo.png" /></div>
    </div>
    <div class="clear"></div>
  </div>
  <div class="newslist">
    <div class="newstitle">
      <div class="newstitleleft">友情链接</div>
      <div class="newstitler"> </div>
    </div>
    <div class="link">
      <table width="966" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center"><img src="<?php echo base_url();?>system/application/views/html/images/default/img/linkone.png" /></td>
          <td align="center"><img src="<?php echo base_url();?>system/application/views/html/images/default/img/linktwo.png" /></td>
          <td align="center"><img src="<?php echo base_url();?>system/application/views/html/images/default/img/linkthree.png" /></td>
          <td align="center"><img src="<?php echo base_url();?>system/application/views/html/images/default/img/linkfour.png" /></td>
          <td align="center"><img src="<?php echo base_url();?>system/application/views/html/images/default/img/linkfive.png" /></td>
          <td align="center"><img src="<?php echo base_url();?>system/application/views/html/images/default/img/linksix.png" /></td>
          <td align="center"><img src="<?php echo base_url();?>system/application/views/html/images/default/img/linkseven.png" /></td>
        </tr>
      </table>
    </div>
    <div class="clear"></div>
  </div>
  <div class="footer">
    <p>关于我们 | 客户服务 | 联系我们 | 人才招聘 | 数码论坛</p>
    <p>广州市公安局天河分局备案编号：<span class="red">1101081463</span> &nbsp;&nbsp;&nbsp;粤ICP证<span class="red">070359号</span></p>
    <p>Copyright 2004-2008 中国数码网 版权所有</p>
    <div class="spacetwo">
      <table width="495" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="<?php echo base_url();?>system/application/views/html/images/default/img/footerone.png" /></td>
          <td><img src="<?php echo base_url();?>system/application/views/html/images/default/img/footertwo.png" /></td>
          <td><img src="<?php echo base_url();?>system/application/views/html/images/default/img/footerthree.png" /></td>
          <td><img src="<?php echo base_url();?>system/application/views/html/images/default/img/footerfour.png" /></td>
        </tr>
      </table>
    </div>
  </div>
</div>
</body>
</html>